var db = require("../modules/db.js");
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var OrdersSchema = new Schema({
  id: {type: String, index: true},
  day: String,
  isFix: Boolean,
  user : [ { type: mongoose.Schema.Types.ObjectId, ref: 'User' } ]
});

mongoose.model("Order", OrdersSchema);
var Order = mongoose.model("Order");

module.exports = Order;
